package com.example.houtai.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

@RestController
@RequestMapping("/sys/suser")
@Slf4j
public class UserController {

    @GetMapping("/info")
    public Principal user(Principal member){
        log.info("==="+member);
        return member;
    }
}
